package pers.qianyu.comment.exception;


import pers.qianyu.core.exception.*;

public enum CommentLambErrorCodeEnum implements ILambErrorCodeEnum {
    COMMENT_NOT_FOUND(2001, "回复的评论不存在了，要不要换个试试？"),
    NO_LOGIN(2002, "当前操作需要登录，请登陆后重试"),
    SYS_ERROR(2003, "服务冒烟了，要不然你稍后再试试！！！"),
    INVALID_COMMENT_ID(2004, "请传入正确的评论 id"),
    FILE_UPLOAD_FAIL(2005, "图片上传失败"),
    INVALID_OPERATION(2006, "对不起，暂时不支持当前操作"),
    RESOURCES_NOT_FOUND(2007, "对不起您请求的资源不存在");

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    private Integer code;
    private String message;

    CommentLambErrorCodeEnum(Integer code, String message) {
        this.message = message;
        this.code = code;
    }
}
